using System;
using System.Collections.Generic;
using System.Text;

namespace SoinusLibrary.Log
{
    [Serializable]
    public class LogEntry
    {
        private System.DateTime _date;
        private string _location;
        private string _message;

        public System.DateTime Date
        {
            get { return _date; }
            set { _date = value; }
        }
        public string Location
        {
            get { return _location; }
            set { _location = value; }
        }
        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }

        public LogEntry(System.DateTime date, String location, String message)
        {
            Date = date;
            Location = location;
            Message = message;           
        }

        public LogEntry(String location, String message)
            : this(System.DateTime.Now, location, message)
        {
        }
    }
}
